﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;

namespace ZhaoXi_Core_WebApi.Utility
{
    /// <summary>
    /// 自定义了一个最简单的Filter
    /// </summary>
    public class CustomAuthorizationFilterAttribute : AuthorizationFilterAttribute 
    { 
        public override void OnAuthorization(HttpActionContext actionContext)
        {
            Console.WriteLine($"授权过滤器CustomActionFilterAttribute的OnActionExecuting执行了，时间{DateTime.Now}");
        }
    }
}